﻿<%@ OutputCache Location="None" %>
<%@ Register TagPrefix="cc1" Namespace="BEGDC.CC.Web.Control" Assembly="ASBCC.Web" %>

<%@ Page Language="c#" CodeBehind="AssignAppForEBD.aspx.cs" AutoEventWireup="false"
    Inherits="BEGDC.CC.Web.Common.AssignAppForEBD" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>AssignApp</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <link href="../css/style_fu.css" type="text/css" rel="stylesheet">
    <link href="../css/global.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script src="../js/ccworkflow.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function OnAssign() {
            var codstaff = document.getElementById("ddlCODStaff");
            if (codstaff != null) {
                if (document.getElementById("ddlCODStaff").value == "" || document.getElementById("ddlCODStaff").value == null || document.getElementById("ddlCODStaff").value == "-1") {
                    alert("Please choose COD staff first");
                    event.returnValue = false;
                }
            }
        }

        $(function() {
            $(".assign").bind("click", function() {

                var vv;
                if ($("input[value=Yes]").attr("checked")) vv = 'Yes';
                if ($("input[value=No]").attr("checked")) vv = 'No';


                window.returnValue = $("#ddlCODStaff").val() + "_" + vv;

                SimpleCloseWindow();
                return false;
            });

            $(".close").bind("click", function() {

                window.returnValue = "%close%";

                SimpleCloseWindow();
                return false;
            });
        });
    </script>

<%--
        void btnAssign_Click(object sender, EventArgs e)
        {
            Response.Write(@"<Script>                                 returnValue = '" + this.ddlCODStaff.SelectedValue + "_" + this.rbEBDEVPApprove.SelectedItem.Text + "'; self.close(); </Script>");
        }

        void ibtnClose_Click(object sender, EventArgs e)
        {
            Response.Write(@"<Script>                                 returnValue = '%close%'; self.close(); </Script>");
        }--%>
        
</head>
<body ms_positioning="GridLayout">
    <%--<form id="Form1" method="post" runat="server">
			<table style="MARGIN: 0px" cellSpacing="0" cellPadding="0" align="center" border="0" width="100%"
				height="100%">
				<tr>
					<td width="30" background="../images/a_work_1.gif" bgColor="#ffffff">&nbsp;</td>
					<td background="../images/a_work_2.gif">
						<table height="100%" cellSpacing="0" cellPadding="0" width="100%">
							<tr>
								<td align="center" colSpan="2" height="35"></td>
							</tr>
							<tr>
								<td style="HEIGHT: 43px" vAlign="middle" align="center" colSpan="2"><span class="copy-title"><strong>Assign Request to&nbsp;EBD Staff</strong></span></td>
							</tr>
							<tr>
								<td style="HEIGHT: 20px" vAlign="middle" align="center" colSpan="2">&nbsp;</td>
							</tr>
							<tr height="35" id="tr_chooseStaff" runat="server">
								<td align="right" style="WIDTH: 181px"><asp:Label ID="lblStaff" Runat="server">Choose EBD Staff:&nbsp;</asp:Label></td>
								<td>
									<asp:dropdownlist id="ddlCODStaff" runat="server" Width="120px"></asp:dropdownlist></td>
							</tr>
							<tr height="30">
								<td align="right" width="181">Need EBD Head Approve:&nbsp;</td>
								<td><asp:radiobuttonlist id="rbEBDEVPApprove" runat="server" Width="88px" RepeatDirection="Horizontal">
										<asp:ListItem Value="1">Yes</asp:ListItem>
										<asp:ListItem Value="0" Selected="True">No</asp:ListItem>
									</asp:radiobuttonlist></td>
							</tr>
							<tr>
								<td colspan="2" id="txtHint" runat="server" style="COLOR: red">&nbsp;</td>
							</tr>
							<tr>
								<td colspan="2">
									<table align="center">
										<tr>
											<td><asp:ImageButton AlternateText="Assign" Runat="server" id="btnAssign" ImageUrl="../images/bbw_OK.gif"></asp:ImageButton></td>
											<td><asp:ImageButton AlternateText="Close" Runat="server" id="ibtnClose" ImageUrl="../images/bbw_close.gif"></asp:ImageButton></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
					<td width="50" background="../images/a_work_3.gif">&nbsp;</td>
				</tr>
			</table>
		</form>--%>
    <h3 class="ev-header-section">
        &nbsp;Assign Request to&nbsp;EBD Staff (委托给EBD成员)</h3>
    <form id="Form2" method="post" runat="server">
    <div>
        <table width="100%" id="Table5" cellspacing="0" cellpadding="0">
            <%--<tr>
                <td valign="middle" align="center" colspan="2">
                    &nbsp;
                </td>
            </tr>--%>
            <tr class="ev-row2" id="tr_chooseStaff" runat="server">
                <td class="title" style="width: 200px;">
                    <asp:Label ID="lblStaff" runat="server">Choose EBD Staff:<br />选择EBD成员</asp:Label>
                </td>
                <td class="val">
                    <asp:DropDownList ID="ddlCODStaff" runat="server" Width="120px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class="ev-row2">
                <td class="title" style="width: 200px;">
                    Need EBD Head Approve:<br />
                    是否需要EBD Head审批?
                </td>
                <td class="val">
                    <asp:RadioButtonList ID="rbEBDEVPApprove" runat="server" Width="88px" RepeatDirection="Horizontal">
                        <asp:ListItem Value="Yes">Yes</asp:ListItem>
                        <asp:ListItem Value="No" Selected="True">No</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <%-- <tr>
                <td style="height: 20px" valign="middle" align="center" colspan="2">
                    &nbsp;
                </td>
            </tr>--%>
            <tr>
                <td colspan="2" id="txtHint" runat="server" style="color: red">
                    &nbsp;
                </td>
            </tr>
            <tr class="ev-row2">
                <td colspan="2" class="padding5 ac">
                    <asp:ResourceButton ID="btnAssign" runat="server" Text="Save" ToolTip="SaveTips"
                        CssClass="btn assign" />
                    <asp:ResourceButton ID="ibtnClose" runat="server" Text="Close" ToolTip="CloseTips"
                        CssClass="btn close" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
